// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 标签列表接口 GET /admin/blog/tag/lists */
export async function lists(body: any, options?: { [key: string]: any }) {
  return request('/admin/blog/tag/lists', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: body,
    ...(options || {}),
  });
}

/** 新增标签接口 GET /admin/blog/tag/create */
export async function create(body: any, options?: { [key: string]: any }) {
  return request('/admin/blog/tag/create', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 更新标签接口 GET /admin/blog/tag/update */
export async function update(body: any, options?: { [key: string]: any }) {
  return request('/admin/blog/tag/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除标签接口 GET /admin/blog/tag/delete */
export async function del(body: any, options?: { [key: string]: any }) {
  return request('/admin/blog/tag/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
